package main

import "fmt"

type Car interface {
	Name() string
	Speed() float32
}

type Benz struct {
	Price float32
}

func (b *Benz) Name() string {
	fmt.Printf("benz \n")
	return "benz"
}

func (b *Benz) Speed() float32 {
	return 1.23
}

func (b Benz) HurryUp() {
	fmt.Printf("Oligei\n")
}

func notify(benz *Benz) {
	fmt.Printf("Hello, %s\n", benz.Name())
}

func main() {

	benz := &Benz{
		Price: float32(32.2),
	}

	benz.HurryUp()
	benz.Name()
	notify(benz)
	fmt.Printf("%p\n", &benz)

}
